<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
<%@page import="java.io.PrintWriter"%>
<%@page import="com.alibaba.fastjson.JSON"%>
<%@page import="hyl.core.db.MyDB"%>
<%@page import="com.servlet.My"%>
<%@page import="hyl.core.MyFun"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%

//查询组织结构
	PrintWriter shuchu = response.getWriter();
	String sql =  "SELECT appid,t0 FROM app";
	MyDB db = My.getDB1();
	List<Map<String, Object>> list = db.queryList(sql, null);
	if(list.isEmpty()){
		shuchu.print("");
	}
	shuchu.print(JSON.toJSONString(list));
%>